﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RPGXEngine;
using System.IO;
using System.Diagnostics;
using RPGX.Server.Debugging;

namespace RPGX.Server
{
    class Program
    {
        static void Main(string[] args)
        {
            Debug.Listeners.Add(new DatabaseTraceListener());
            //Trace.Listeners.Add(new DatabaseTraceListener());

            Server s = new Server();

            Debug.Write("Starting Server");

            try
            {
                s.Init();

                s.Run();

                s.Shutdown();
            }
            catch (Exception ex)
            {
                Debug.Write(ex);
            }
            finally
            {
            }
        }
    }
}
